package com.tem.purchase.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 腾木
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("purchase_order")
@ApiModel(value="PurchaseOrder对象", description="")
public class PurchaseOrder implements Serializable {
    private static final long serialVersionUID=4903236679806781L;
    @ApiModelProperty(value = "采购单")
    @TableId(value = "purchase_order_id", type = IdType.AUTO)
    private Long purchaseOrderId;

    @ApiModelProperty(value = "企业")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "系统")
    @TableField("system_level_id")
    private Long systemLevelId;

    @ApiModelProperty(value = "供应商")
    @TableField("supplier_id")
    private Long supplierId;

    @ApiModelProperty(value = "跟单人")
    @TableField("sys_user_id")
    private Long sysUserId;

    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "应付款")
    @TableField("payable")
    private BigDecimal payable;

    @ApiModelProperty(value = "折后付款")
    @TableField("discount")
    private BigDecimal discount;

    @ApiModelProperty(value = "预付定金")
    @TableField("down_payment")
    private BigDecimal downPayment;

    @ApiModelProperty(value = "备注")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "制单人")
    @TableField("create_id")
    private Long createId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "流程状态")
    @TableField("flow_status")
    private String flowStatus;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
